package com.ddone.finance.service;

import com.ddone.finance.pojo.entity.UserInfo;
import com.ddone.finance.pojo.entity.UserLoginRecord;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 用户登录记录表 服务类
 * </p>
 *
 * @author ddone
 * @since 2024-04-10
 */
public interface UserLoginRecordService extends IService<UserLoginRecord> {
    void saveLoginLog(UserInfo userInfo, String ip);

    List<UserLoginRecord> listLatest50(Long userId);
}
